<!-- $Id: mshop_frozen_profit_list.htm 14216 2008-03-10 02:27:21Z testyang $ -->

{if $full_page}
{include file="pageheader.htm"}
{insert_scripts files="../js/utils.js,listtable.js"}

<div class="form-div">
  <form action="javascript:searchMshop()" name="searchForm">
    <img src="images/icon_search.gif" width="26" height="22" border="0" alt="SEARCH" />
    状态：<select name="status">
        <option value=''>全部</option>
        <option value='1'>正常</option>
        <option value='3'>已取消</option>
    </select>
    {$lang.user_name}：<input type="text" name="keyword" size="30" />
    订单号：<input type="text" name="order_sn" size="30" />
    <input type="submit" value="{$lang.button_search}" class="button" />
  </form>
</div>

<form method="post" action="mshop_payment.php" name="listForm" onsubmit="return confirm(batch_drop_confirm);">
<!-- start mshop list -->
<div class="list-div" id="listDiv">
{/if}

  <table cellpadding="3" cellspacing="1">
    <tr>
      <th>
      <!--  <input onclick='listTable.selectAll(this, "checkboxes")' type="checkbox" />-->
        <a href="javascript:listTable.sort('frozen_id'); ">{$lang.frozen_id}</a>{$sort_frozen_id}</th>
      <th>{$lang.user_name}</th>
      <th>佣金</th>
      <th>商品价格</th>
      <th><a href="javascript:listTable.sort('order_sn'); ">订单号</a>{$sort_order_sn}</th>
      <th>{$lang.mobile_phone}</th>
      <th>本店购买</th>
      <th>{$lang.ctime}</th>
      <th>{$lang.status}</th>
      <!--<th>{$lang.handler}</th>-->
    </tr>

    {foreach from=$mshop_frozen_profit_list item=frozen}
    <tr>
      <td><!--<input value="{$payment.frozen_id}" name="checkboxes[]" type="checkbox">-->{$frozen.frozen_id}</td>
      <td align="left">{$frozen.user_name|escape:html}</td>
      <td align="center">{$frozen.frozen_profit}</td>
      <td align="center">{$frozen.goods_price}</td>
       <td align="center">{$frozen.order_sn}</td>
       <td align="center">{$frozen.mobile_phone}</td>
       <td align="center">{if $frozen.myshop}是{else}否{/if}</td>
       <td align="center">{$frozen.ctime}</td>
       
       <td align="center">{if $frozen.status==2}已取消{else }正常{/if}</td>
<!--      <td align="center">
        <a href="mshop_payment.php?act=edit&amp;id={$payment.frozen_id}" title="{$lang.edit}"><img src="images/icon_edit.gif" border="0" height="16" width="16" /></a>
        <a href="javascript:;" onclick="listTable.remove({$payment.frozen_id},'{$lang.drop_confirm}')" title="{$lang.remove}"><img src="images/icon_drop.gif" border="0" height="16" width="16" /></a>     
         </td>-->
    </tr>
    {foreachelse}
    <tr><td class="no-records" colspan="13">{$lang.no_records}</td></tr>
    {/foreach}
  </table>

  <table cellpadding="4" cellspacing="0">
    <tr>
      <td>
      <input type="hidden" name="act" value="batch" /></td>
      <td align="right">{include file="page.htm"}</td>
    </tr>
  </table>

{if $full_page}
</div>
<!-- end mshop list -->
</form>

<script type="text/javascript" language="JavaScript">
<!--
  listTable.recordCount = {$record_count};
  listTable.pageCount = {$page_count};

  {foreach from=$filter item=item key=key}
  listTable.filter.{$key} = '{$item}';
  {/foreach}

  {literal}
  onload = function()
  {
    document.forms['searchForm'].elements['keyword'].focus();

    startCheckOrder();
  }

  /**
   * 搜索团购活动
   */
  function searchMshop()
  {
    var keyword = Utils.trim(document.forms['searchForm'].elements['keyword'].value);
    listTable.filter['keyword'] = keyword;
	var order_sn = Utils.trim(document.forms['searchForm'].elements['order_sn'].value);
    listTable.filter['order_sn'] = order_sn;
	var status = Utils.trim(document.forms['searchForm'].elements['status'].value);
    listTable.filter['status'] = status;
    listTable.filter['page'] = 1;
    listTable.loadList("mshop_frozen_profit_list");
  }
  {/literal}
//-->
</script>

{include file="pagefooter.htm"}
{/if}